function out = SaveTarget(P,target)

% global memory variables
global targets;
global targets_op;

P_color = P{2};
P_num = P{3};

if (P_color == 'r')
    targets{P_num} = target;
else
    targets_op{P_num} = target;
end

out = 0;
end